<%@ page import="com.gl.multipleyes.Usie" %>



<div class="fieldcontain ${hasErrors(bean: usieInstance, field: 'description', 'error')} ">
	<label for="description">
		<g:message code="usie.description.label" default="Description" />
		
	</label>
	<g:textField name="description" maxlength="240" value="${usieInstance?.description}"/>

</div>

<div class="fieldcontain ${hasErrors(bean: usieInstance, field: 'imagePath', 'error')} ">
	<label for="imagePath">
		<g:message code="usie.imagePath.label" default="Image Path" />
		
	</label>
	<g:textField name="imagePath" value="${usieInstance?.imagePath}"/>

</div>

<div class="fieldcontain ${hasErrors(bean: usieInstance, field: 'usieMaster', 'error')} required">
	<label for="usieMaster">
		<g:message code="usie.usieMaster.label" default="Usie Master" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="usieMaster" name="usieMaster.id" from="${com.gl.multipleyes.User.list()}" optionKey="id" required="" value="${usieInstance?.usieMaster?.id}" class="many-to-one"/>

</div>

<div class="fieldcontain ${hasErrors(bean: usieInstance, field: 'invitations', 'error')} ">
	<label for="invitations">
		<g:message code="usie.invitations.label" default="Invitations" />
		
	</label>
	
<ul class="one-to-many">
<g:each in="${usieInstance?.invitations?}" var="i">
    <li><g:link controller="invitation" action="show" id="${i.id}">${i?.encodeAsHTML()}</g:link></li>
</g:each>
<li class="add">
<g:link controller="invitation" action="create" params="['usie.id': usieInstance?.id]">${message(code: 'default.add.label', args: [message(code: 'invitation.label', default: 'Invitation')])}</g:link>
</li>
</ul>


</div>

